<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TPointerEvent类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_pointer_event-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TPointerEvent类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TPointerEvent 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_pointer_event.png" usemap="#TPointerEvent_map" alt=""/>
  <map id="TPointerEvent_map" name="TPointerEvent_map">
<area href="class_t_event.html" alt="TEvent" shape="rect" coords="0,0,91,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aba09a905a19424b4ea47472231965edc"><td class="memItemLeft" align="right" valign="top"><a id="aba09a905a19424b4ea47472231965edc"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TPointerEvent</b> (event_t *nativeObj)</td></tr>
<tr class="separator:aba09a905a19424b4ea47472231965edc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5278867a774b460cec35e6fc3106f53"><td class="memItemLeft" align="right" valign="top"><a id="ac5278867a774b460cec35e6fc3106f53"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TPointerEvent</b> (const pointer_event_t *nativeObj)</td></tr>
<tr class="separator:ac5278867a774b460cec35e6fc3106f53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0f9e34c5773ca0971fea0901bf43a7d"><td class="memItemLeft" align="right" valign="top">xy_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_pointer_event.html#af0f9e34c5773ca0971fea0901bf43a7d">GetX</a> () const</td></tr>
<tr class="separator:af0f9e34c5773ca0971fea0901bf43a7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb2c87e48ccb6f02c61270efb15b4484"><td class="memItemLeft" align="right" valign="top">xy_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_pointer_event.html#adb2c87e48ccb6f02c61270efb15b4484">GetY</a> () const</td></tr>
<tr class="separator:adb2c87e48ccb6f02c61270efb15b4484"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a398e2623f8dea149a9e6375f4b39d2ec"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_pointer_event.html#a398e2623f8dea149a9e6375f4b39d2ec">GetButton</a> () const</td></tr>
<tr class="separator:a398e2623f8dea149a9e6375f4b39d2ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab63f102e66eb3cb48f545c43041818d9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_pointer_event.html#ab63f102e66eb3cb48f545c43041818d9">GetPressed</a> () const</td></tr>
<tr class="separator:ab63f102e66eb3cb48f545c43041818d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7308c52142d8a5e540595621fb1ec53e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_pointer_event.html#a7308c52142d8a5e540595621fb1ec53e">GetAlt</a> () const</td></tr>
<tr class="separator:a7308c52142d8a5e540595621fb1ec53e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef45c0768ae72e026210d847a1a48489"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_pointer_event.html#aef45c0768ae72e026210d847a1a48489">GetCtrl</a> () const</td></tr>
<tr class="separator:aef45c0768ae72e026210d847a1a48489"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8321b1116ab5d404233a053f004081be"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_pointer_event.html#a8321b1116ab5d404233a053f004081be">GetCmd</a> () const</td></tr>
<tr class="separator:a8321b1116ab5d404233a053f004081be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa51c5d771462e7e961f2981e0ea62397"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_pointer_event.html#aa51c5d771462e7e961f2981e0ea62397">GetMenu</a> () const</td></tr>
<tr class="separator:aa51c5d771462e7e961f2981e0ea62397"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8c80ae65890b65bb126f9996c8337aa"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_pointer_event.html#ac8c80ae65890b65bb126f9996c8337aa">GetShift</a> () const</td></tr>
<tr class="separator:ac8c80ae65890b65bb126f9996c8337aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_t_event"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_t_event')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_t_event.html">TEvent</a></td></tr>
<tr class="memitem:a942db33b764993a78d737141ebebb8f0 inherit pub_methods_class_t_event"><td class="memItemLeft" align="right" valign="top"><a id="a942db33b764993a78d737141ebebb8f0"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TEvent</b> (event_t *nativeObj)</td></tr>
<tr class="separator:a942db33b764993a78d737141ebebb8f0 inherit pub_methods_class_t_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0dd231eec7d9bdbe520ee4a016977b6 inherit pub_methods_class_t_event"><td class="memItemLeft" align="right" valign="top"><a id="ac0dd231eec7d9bdbe520ee4a016977b6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TEvent</b> (const event_t *nativeObj)</td></tr>
<tr class="separator:ac0dd231eec7d9bdbe520ee4a016977b6 inherit pub_methods_class_t_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afff04d515d40e86c9fecd6b3b0368cec inherit pub_methods_class_t_event"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_event.html#afff04d515d40e86c9fecd6b3b0368cec">Destroy</a> ()</td></tr>
<tr class="separator:afff04d515d40e86c9fecd6b3b0368cec inherit pub_methods_class_t_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7501c5161e93cccdf1fd6411d87a7187 inherit pub_methods_class_t_event"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_event.html#a7501c5161e93cccdf1fd6411d87a7187">GetType</a> () const</td></tr>
<tr class="separator:a7501c5161e93cccdf1fd6411d87a7187 inherit pub_methods_class_t_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2095563399b7dc00443046abd71485d3 inherit pub_methods_class_t_event"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_event.html#a2095563399b7dc00443046abd71485d3">GetTime</a> () const</td></tr>
<tr class="separator:a2095563399b7dc00443046abd71485d3 inherit pub_methods_class_t_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03c3315ddbbb7522ea86fc56f934b753 inherit pub_methods_class_t_event"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_event.html#a03c3315ddbbb7522ea86fc56f934b753">GetTarget</a> () const</td></tr>
<tr class="separator:a03c3315ddbbb7522ea86fc56f934b753 inherit pub_methods_class_t_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a8af60c7b4312af7cb6821a8c9a98413b"><td class="memItemLeft" align="right" valign="top"><a id="a8af60c7b4312af7cb6821a8c9a98413b"></a>
static <a class="el" href="class_t_pointer_event.html">TPointerEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (event_t *nativeObj)</td></tr>
<tr class="separator:a8af60c7b4312af7cb6821a8c9a98413b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac466fb56bdbf859ab11473f5a45c5b3"><td class="memItemLeft" align="right" valign="top"><a id="aac466fb56bdbf859ab11473f5a45c5b3"></a>
static <a class="el" href="class_t_pointer_event.html">TPointerEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const event_t *nativeObj)</td></tr>
<tr class="separator:aac466fb56bdbf859ab11473f5a45c5b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ee66cc18e018a4bd6d8aa9a4b1c231b"><td class="memItemLeft" align="right" valign="top"><a id="a9ee66cc18e018a4bd6d8aa9a4b1c231b"></a>
static <a class="el" href="class_t_pointer_event.html">TPointerEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (<a class="el" href="class_t_event.html">TEvent</a> &amp;obj)</td></tr>
<tr class="separator:a9ee66cc18e018a4bd6d8aa9a4b1c231b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0fbff086c8e5cf399907b75610cf807"><td class="memItemLeft" align="right" valign="top"><a id="aa0fbff086c8e5cf399907b75610cf807"></a>
static <a class="el" href="class_t_pointer_event.html">TPointerEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const <a class="el" href="class_t_event.html">TEvent</a> &amp;obj)</td></tr>
<tr class="separator:aa0fbff086c8e5cf399907b75610cf807"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_class_t_event"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_t_event')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="class_t_event.html">TEvent</a></td></tr>
<tr class="memitem:a064c00ed3c16e9bd50a24b444d5c5a23 inherit pub_static_methods_class_t_event"><td class="memItemLeft" align="right" valign="top"><a id="a064c00ed3c16e9bd50a24b444d5c5a23"></a>
static <a class="el" href="class_t_event.html">TEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (event_t *nativeObj)</td></tr>
<tr class="separator:a064c00ed3c16e9bd50a24b444d5c5a23 inherit pub_static_methods_class_t_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94363c56edb03d39bad9fb781b0b4bd4 inherit pub_static_methods_class_t_event"><td class="memItemLeft" align="right" valign="top"><a id="a94363c56edb03d39bad9fb781b0b4bd4"></a>
static <a class="el" href="class_t_event.html">TEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const event_t *nativeObj)</td></tr>
<tr class="separator:a94363c56edb03d39bad9fb781b0b4bd4 inherit pub_static_methods_class_t_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adad60ee8cf3e26266681c6c80d41bd3b inherit pub_static_methods_class_t_event"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_t_event.html">TEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_event.html#adad60ee8cf3e26266681c6c80d41bd3b">Create</a> (uint32_t type)</td></tr>
<tr class="separator:adad60ee8cf3e26266681c6c80d41bd3b inherit pub_static_methods_class_t_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_attribs_class_t_event"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_class_t_event')"><img src="closed.png" alt="-"/>&#160;Public 属性 继承自 <a class="el" href="class_t_event.html">TEvent</a></td></tr>
<tr class="memitem:a3db858b3c8ac2536e074a238c9483de3 inherit pub_attribs_class_t_event"><td class="memItemLeft" align="right" valign="top"><a id="a3db858b3c8ac2536e074a238c9483de3"></a>
event_t *&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a3db858b3c8ac2536e074a238c9483de3 inherit pub_attribs_class_t_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>指针事件。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a7308c52142d8a5e540595621fb1ec53e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7308c52142d8a5e540595621fb1ec53e">&#9670;&nbsp;</a></span>GetAlt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TPointerEvent::GetAlt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>alt键是否按下。 </p>

</div>
</div>
<a id="a398e2623f8dea149a9e6375f4b39d2ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a398e2623f8dea149a9e6375f4b39d2ec">&#9670;&nbsp;</a></span>GetButton()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t TPointerEvent::GetButton </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>button。 </p>

</div>
</div>
<a id="a8321b1116ab5d404233a053f004081be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8321b1116ab5d404233a053f004081be">&#9670;&nbsp;</a></span>GetCmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TPointerEvent::GetCmd </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>cmd键是否按下。 </p>

</div>
</div>
<a id="aef45c0768ae72e026210d847a1a48489"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef45c0768ae72e026210d847a1a48489">&#9670;&nbsp;</a></span>GetCtrl()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TPointerEvent::GetCtrl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>ctrl键是否按下。 </p>

</div>
</div>
<a id="aa51c5d771462e7e961f2981e0ea62397"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa51c5d771462e7e961f2981e0ea62397">&#9670;&nbsp;</a></span>GetMenu()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TPointerEvent::GetMenu </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>menu键是否按下。 </p>

</div>
</div>
<a id="ab63f102e66eb3cb48f545c43041818d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab63f102e66eb3cb48f545c43041818d9">&#9670;&nbsp;</a></span>GetPressed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TPointerEvent::GetPressed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>指针是否按下。 </p>

</div>
</div>
<a id="ac8c80ae65890b65bb126f9996c8337aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8c80ae65890b65bb126f9996c8337aa">&#9670;&nbsp;</a></span>GetShift()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TPointerEvent::GetShift </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>shift键是否按下。 </p>

</div>
</div>
<a id="af0f9e34c5773ca0971fea0901bf43a7d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0f9e34c5773ca0971fea0901bf43a7d">&#9670;&nbsp;</a></span>GetX()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">xy_t TPointerEvent::GetX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>x坐标。 </p>

</div>
</div>
<a id="adb2c87e48ccb6f02c61270efb15b4484"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb2c87e48ccb6f02c61270efb15b4484">&#9670;&nbsp;</a></span>GetY()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">xy_t TPointerEvent::GetY </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>y坐标。 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
